package demo;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-09-25  20:30
 */
public class Test11 {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int price = console.nextInt();
        int cost = 0;

        if (price >= 100 && price < 500) {
            cost = (int) (0.9 * cost);
        } else if (price >= 500 && price < 2000) {
            cost = (int) (0.8 * cost);
        } else if (price >= 2000 && price < 5000) {
            cost = (int) (0.7 * cost);
        } else if (price >= 5000) {
            cost = (int) (0.6 * cost);
        }

        System.out.println(cost);
    }
}
